package com.chebaohui.iqs.service.impl.deal.taiping;

import com.alibaba.fastjson.JSONObject;
import com.chebaohui.iqs.config.ResultCode;

/**
 * 太平直连中间类
 * 
 * @author xielonghai
 *
 */
public class ResTaiPing {

	private boolean state;// 状态

	private ResultCode error;// 编码

	private String msg;// log 记录

	private JSONObject result;// 结果

	private String errMsg;// 错误描述

	private JSONObject head = new JSONObject();

	public ResTaiPing(ResultCode error, String msg, String errMsg) {
		this.state = false;
		this.error = error;
		this.msg = msg;

		this.errMsg = errMsg;
	}

	public ResTaiPing(ResultCode error, String msg, JSONObject result, String errMsg) {
		this.state = false;
		this.error = error;
		this.msg = msg;
		this.result = result;

		this.errMsg = errMsg;
	}

	public ResTaiPing(JSONObject result) {
		this.state = true;
		this.result = result;
	}

	public ResultCode getError() {
		return error;
	}

	public void setError(ResultCode error) {
		this.error = error;
	}

	public boolean isState() {
		return state;
	}

	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg){
		this.msg=msg;
	}

	public JSONObject getResult() {
		return result;
	}

	public JSONObject getHead() {
		return head;
	}

	public void setHead(JSONObject head) {
		this.head = head;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
